package com.six.order.feign;

import com.six.core.entity.Goods;
import com.six.core.vo.GoodsNumUpdateVo;
import com.six.core.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: WangPeng
 * @createTime: 2023/03/07 19:24
 * @description:
 * @version: v1.0
 */
@FeignClient(value = "caicaibang-goods")
public interface GoodsFeign {

    @PostMapping("/goods/api/goods/updateGoodsNum")
    Integer updateGoodsNum(@RequestBody List<GoodsNumUpdateVo> goodsVoList);


    @PostMapping("/goods/api/goods/selectGoodsByid/{id}")
    Goods selectGoodsByid(@PathVariable Integer id);

}
